in System.out.println() System is a class : "public final class System " OUT is :" public final static PrintStream out = null; inside Sytem Class" The "standard" output stream. This stream is already open and ready to accept output data. Typically this stream corresponds to display output. println is a method in :"public class PrintStream extends FilterOutputStream" this method u can use using OUT variable. | 0 |
By: [email protected] On: Mon Feb 17 11:08:15 IST 2014 0 0 0 | 0 |
Are You Satisfied :4Yes0No |
inside the System class is the declaration of ‘out’ that looks like: ‘public static final PrintStream out’, and inside the Prinstream class is a declaration of ‘println()’ that has a method signature that looks like: ‘public void println()’. it could be understand like... import java.io.*; class System{ public static PrintStream out=new PrintStream(); .... } class PrintStream{ public void println(String s){...} public void println(int i){...} public void println(long l){...} ... } | 0 | |
By: [email protected] On: Mon Feb 17 12:33:23 IST 2014 0 392 0 | 392 | |
Are You Satisfied :1Yes0No | ||
Comments | ||
Sir can u give me another example explaining this scenario. | ||
1 |
Sir can u give me another example explaining this scenario. | 0 |
By: [email protected] On: Mon Feb 17 13:47:05 IST 2014 0 1 0 | 1 |
Are You Satisfied :0Yes0No |
println() method is used to print and pass the control to the new line. It is a method of PrintStream class. A method is called by the object. Therefore out is the object of the PrintStream class. System is a class that specifies hardware where output is to be produced(here). Thus, output is produced at console. | 0 |
By: [email protected] On: Mon Feb 17 17:18:28 IST 2014 0 359 0 | 359 |
Are You Satisfied :0Yes0No |